-- GENERATED SPELL FOR [Iron Sentinel] --


function spell0_29984(pUnit, Event) --@Stomp,n/a--
pUnit:FullCastSpellOnTarget(56490,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29984', 560, 1)
end

function spell1_29984(pUnit, Event) --@Throw Boulder,n/a--
pUnit:FullCastSpellOnTarget(55811,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29984', 2000, 1)
end

function Sorts_29984(pUnit, Event)
local choix_sorts_29984 = math.random(0, 1)
if choix_sorts_29984 == 0 then
pUnit:RegisterEvent('spell0_29984', 1, 1)
end
if choix_sorts_29984 == 1 then
pUnit:RegisterEvent('spell1_29984', 1, 1)
end
end

function mob29984_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29984', math.random(1500, 3000), 1)
end

function mob29984_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29984_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29984_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29984, 1, 'mob29984_Action')
RegisterUnitEvent(29984, 2, 'mob29984_Leave')
RegisterUnitEvent(29984, 3, 'mob29984_Kill')
RegisterUnitEvent(29984, 4, 'mob29984_Die')
